package com.itheima.demo1;

import java.util.Scanner;

public class exercise15 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("1.机票查询\n2.机票预定\n3.机票改签\n4.退出服务\n请输入您的选择\n");
        int choose = sc.nextInt();

        switch(choose){
            case 1:
                System.out.println("机票查询");
                break;
            case 2:
                System.out.println("机票预定");
                break;
            case 3:
                System.out.println("机票改签");
                break;
            case 4:
                System.out.println("退出服务");
                break;
            default:
                System.out.println("退出服务");
                break;
            //case 1 -> System.out.println("机票查询");
            //case 2 -> System.out.println("机票预定");
            //case 3 -> System.out.println("机票改签");
            //case 4 -> System.out.println("退出服务");case 4可以不写，case穿透
            //default -> System.out.println("退出服务");
        }
    }
}
